# -*- coding: utf-8 -*-
"""
修改于 2020年10月8日 19:31:49

作者: 翾樾Non

Version:4.0
"""

print("\
这是一个简单的姓氏名字判断程序\n\
输入您的姓名看看吧！")                             #为程序提供指导
print('\
This is a poor first and last name judgement programe\n\
Please input your name and have a try!')         #英文翻译

judge0=input('\
请问您是一位以英语为母语的人吗？（Yes或No）\n\
Are you a native English speaker?(Yes or No):')

if judge0=='No' :
    judge=int(input('请问您的姓氏为几个字？:'))
    name=input("请输入你的姓名:")          
    print("那么，我猜您一定姓：")
    print(name[:judge])
    print("那么，我猜您一定名：")
    judge2=judge
    print(name[judge2:])
    print("看看这是不是真的符合您的实际呢？")
    
elif judge0=='Yes' :
    judge=int(input('How many figures did your last name have？:'))
    judge3=-judge
    judge4=-judge-1
    name=input("Please input your name:")          
    print("So,I guess,your last name is：")
    print(name[judge3:])
    print("So,I guess,your first name is：")
    print(name[0:judge4])
    print("Does it fit the fact?")
    
else:
    print('\
输入有误，请重试\n\
请依据您的实际情况输入Yes或No')
    print('\
Please input Yes or No\n\
Please try again')
    